package com.devilvan.betrice.aiqicha.vo;

import com.alibaba.fastjson.annotation.JSONField;
import com.devilvan.betrice.aiqicha.deserialize.ParseHyphenDeserializer;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @author Evad.Wu
 * @Description 爱企查-行政许可信息 值对象
 * @date 2022-09-24
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Schema(description = "爱企查-行政许可信息 值对象")
public class AiqichaLicenseVo{
    @Schema(description = "企业系统ID")
    @JSONField(deserialize = false)
    private Long pid;
    @Schema(description = "行政许可证号")
    @JSONField(alternateNames = {"licenseNumber"})
    private String licenseNumber;
    @Schema(description = "许可名称")
    @JSONField(alternateNames = {"licenseName"})
    private String licenseName;
    @Schema(description = "许可内容")
    @JSONField(alternateNames = {"licenseContent"})
    private String licenseContent;
    @Schema(description = "有效期值自")
    @JSONField(alternateNames = {"validityFrom"}, deserializeUsing = ParseHyphenDeserializer.class)
    private Date validityFrom;
    @Schema(description = "有效期至")
    @JSONField(alternateNames = {"validityTo"}, deserializeUsing = ParseHyphenDeserializer.class)
    private Date validityTo;
    @Schema(description = "许可机关")
    @JSONField(alternateNames = {"issueAuthority"})
    private String issueAuthority;
}
